package com.qfedu.labsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qfedu.labsystem.dao.RoleMapper;
import com.qfedu.labsystem.entity.bo.RoleBO;
import com.qfedu.labsystem.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RoleServiceImpl
 * @Author ykx
 * @Date 2024/4/5 18:31
 * @Version 1.0
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, RoleBO> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<RoleBO> getRoleList() {
        return list();
    }

    @Override
    public Boolean updateRoleList(RoleBO roleBO) {
        return updateById(roleBO);
    }

    @Override
    public Integer deleteRole(Integer id) {
        return roleMapper.deleteById(id);
    }
}
